home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Hyper / Rinaldi / HC 2.0 Only / FullText 1.0.cpt / FullText 1.0 / cards.xml < prev    next >
Text File  |  1991-02-15  |  8KB  |  118 lines

  1. card_3055.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3055</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_3273.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2661</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_2428.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <true /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>69</left>
  25.             <top>68</top>
  26.             <right>434</right>
  27.             <bottom>252</bottom>
  28.         </rect>
  29.         <style>scrolling</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <false /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>left</textAlign>
  38.         <font>Geneva</font>
  39.         <textSize>9</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>12</textHeight>
  42.         <name>Text</name>
  43.         <script></script>
  44.     </part>
  45.     <part>
  46.         <id>5</id>
  47.         <type>button</type>
  48.         <visible> <true /> </visible>
  49.         <reserved5> 0 </reserved5>
  50.         <reserved4> 0 </reserved4>
  51.         <reserved3> 0 </reserved3>
  52.         <reserved2> 0 </reserved2>
  53.         <reserved1> 0 </reserved1>
  54.         <enabled> <true /> </enabled>
  55.         <rect>
  56.             <left>174</left>
  57.             <top>281</top>
  58.             <right>343</right>
  59.             <bottom>311</bottom>
  60.         </rect>
  61.         <style>roundrect</style>
  62.         <showName> <true /> </showName>
  63.         <highlight> <false /> </highlight>
  64.         <autoHighlight> <true /> </autoHighlight>
  65.         <sharedHighlight> <true /> </sharedHighlight>
  66.         <family>0</family>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>center</textAlign>
  70.         <font>Chicago</font>
  71.         <textSize>12</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <name>GetFullText</name>
  74.         <script>on mouseUpshow cd fld 2GetFullText "cd fld 1"if the Result ‚↠emptythenanswer the Resultexit mouseUpend ifSetFullText "cd fld 2"if the Result ‚↠emptythenanswer the Resultexit mouseUpend ifend mouseUp</script>
  75.     </part>
  76.     <part>
  77.         <id>17</id>
  78.         <type>field</type>
  79.         <visible> <false /> </visible>
  80.         <dontWrap> <false /> </dontWrap>
  81.         <dontSearch> <false /> </dontSearch>
  82.         <sharedText> <false /> </sharedText>
  83.         <fixedLineHeight> <true /> </fixedLineHeight>
  84.         <autoTab> <false /> </autoTab>
  85.         <lockText> <true /> </lockText>
  86.         <rect>
  87.             <left>69</left>
  88.             <top>15</top>
  89.             <right>434</right>
  90.             <bottom>67</bottom>
  91.         </rect>
  92.         <style>scrolling</style>
  93.         <autoSelect> <false /> </autoSelect>
  94.         <showLines> <false /> </showLines>
  95.         <wideMargins> <false /> </wideMargins>
  96.         <multipleLines> <false /> </multipleLines>
  97.         <reservedFamily> 0 </reservedFamily>
  98.         <titleWidth>0</titleWidth>
  99.         <icon>0</icon>
  100.         <textAlign>left</textAlign>
  101.         <font>Geneva</font>
  102.         <textSize>9</textSize>
  103.         <textStyle>plain</textStyle>
  104.         <textHeight>12</textHeight>
  105.         <name>Text</name>
  106.         <script>on mouseUphide meput empty into meend mouseUp</script>
  107.     </part>
  108.     <content>
  109.         <layer>card</layer>
  110.         <id>1</id>
  111.         <text><span class="style1">                                        </span><span class="style2">FullText Stack 1.0</span><span class="style1">                                          </span><span class="style3">by Fr√©d√©ric RINALDI</span><span class="style1">  This stack contains two XCMDs : GetFullText and SetFullText that allow to transfer full-styled text between two fields.                                           </span><span class="style2">GetFullText 1.0</span><span class="style1"></span><span class="style4">DESCRIPTION</span><span class="style1">   GetFullText gets the styled text from a field and stores it temporarily in memory until SetFullText is called.</span><span class="style4">SYNTAX</span><span class="style1">                                   GetFullText <field descriptor></span><span class="style4">PARAMETERS</span><span class="style1">   <field descriptor> is a litteral string containing any valid field descriptor. Don't forget to enclose it in quotes, in order for it not to be interpreted by HyperCard when the XCMD is called. If you want to use the field name, you will use :         </span><span class="style5">GetFullText "cd fld" && quote & "Name" & quote</span><span class="style1">   Using "!" and "?" as parameter will return an online help (resp. copyright and syntax).</span><span class="style4">USING</span><span class="style1">   The XCMD creates a global variable named </span><span class="style6">FullTextHandle</span><span class="style1"> that contains the value of the temporary styled text handle stored in memory. </span><span class="style7">        Don't change its value by yourself, or you will crash your Mac.</span><span class="style8"></span><span class="style1">   Meanwhile, you can test its content to know if you're ready to use SetFullText, it should be ‚↠empty in this case.</span><span class="style4">ERRORS</span><span class="style1">If an error occurs, GetFullText can return :     "Error : Param is not a field descriptor"     "Error : Field not found"     "Error : GetFullText works only with HC 2.0"     "Error : Missing parameter"     "Error : Out of memory"     "Error : Couldn't set FullTextHandle global"                                           </span><span class="style2">SetFullText 1.0</span><span class="style1"></span><span class="style4">DESCRIPTION</span><span class="style1">   SetFullText sets the styled  content of a a field using information previously stored in memory by GetFullTExt.</span><span class="style4">SYNTAX</span><span class="style1">                                   SetFullText <field descriptor></span><span class="style4">PARAMETERS</span><span class="style1">   <field descriptor> is a litteral string containing any valid field descriptor. Don't forget to enclose it in quotes, in order for it not to be interpreted by HyperCard when the XCMD is called. If you want to use the field name, you will use :         </span><span class="style5">SetFullText "cd fld" && quote & "Name" & quote</span><span class="style1">   Using "!" and "?" as parameter will return an online help (resp. copyright and syntax).</span><span class="style4">USING</span><span class="style1">   The XCMD uses the global variable named </span><span class="style6">FullTextHandle</span><span class="style1">, previsouly created by GetFullTExt and that contains the value of the temporary styled text handle stored in memory. </span><span class="style7">        Don't change its value by yourself, or you will crash your Mac.</span><span class="style8"></span><span class="style1">   Meanwhile, you can test its content to know if you're ready to use SetFullText, it should be ‚↠empty in this case.   This global variable and the styled text handle are purged from memory by SetFullText. So each call to SetFullText must be preceeded by GetFullText.</span><span class="style4">ERRORS</span><span class="style1">If an error occurs, SetFullText can return :     "Error : Param is not a field descriptor"     "Error : Field not found"     "Error : SetFullText works only with HC 2.0"     "Error : Missing parameter"     "Error : Must first use GetFullText"     "Error : Couldn't set destination field"     "Error : Couldn't empty FullTextHandle global"--------------------------------------------------------------------This (these) external(s) is (are) FreeWare,allowing unlimited use in any non-commercial stack. You just need in this case to mention the author's name and copyright in your stack.Any commercial use must be licensed and aknowledged by the author.                                           ¬© F. Rinaldi - 1991AppleLink: RINALDI1        CalvaCom : FR10        Compuserve : 71170,2111</span></text>
  112.     </content>
  113.     <name></name>
  114.     <script></script>
  115. </card>
  116.  
  117.  
  118.